//将我们http.js中封装好的  get,post.put,delete  导过来

import { axios_get, axios_post, axios_delete, axios_put, axios_url } from './http.js'

export const get_car_data = p => axios_get("/car/info/query", p)
export const get_car_record = p => axios_get("/car/record/query", p)
export const car_into = p => axios_post("/car/into", p)
export const car_out = p => axios_post("/car/out", p)

// 支付相关接口
export const create_order = p => axios_post("/pay/create_order", p)
export const get_alipay = p => axios_get("/pay/get_alipay", p)
export const check_alipay = p => axios_post("/pay/check_alipay", p)

// 快递相关接口
export const get_driver_list = p => axios_get("/fast_mail/driver_list", p)
export const get_truck_list = p => axios_get("/fast_mail/truck_list", p)
export const get_mail_list = p => axios_get("/fast_mail/mail_list", p)
export const add_fast_mail = p => axios_post("/fast_mail/add_fast_mail", p)

// 用户相关
export const login = p => axios_post("/account/login", p)

// 菜单相关
export const get_menu_list = p => axios_get("/menu/menu_list", p)
export const add_menu_list = p => axios_post("/menu/add_menu", p)
export const update_menu_list = p => axios_post("/menu/update", p)


